<?php
session_start();
if(!session_is_registered(myusername)){
header("location:main.php");
}
?>

<html>
<body>
<?
if (isset($_SESSION['myusername'])) {
echo 'Login Successful as ' .$_SESSION['myusername']. '<br>';
echo 'level: ' .$_SESSION['level'];
}

?>
</body>
</html>
